<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<h1>我是一个h5页面</h1>
<p>老潘在讲混合开发</p>
<img src="https://foruda.gitee.com/avatar/1705232317138324256/1759638_itcast_panpu_1705232317.png" width="200"/>
<button onclick="selfOpenPhoto()">打开相册</button>
<button onclick="changeText()">修改p标签内容</button>
</body>
<script>
    function changeText(str="我是默认值"){
       document.querySelector('p').innerHTML= str
    }
    function selfOpenPhoto(){
        objName.objKey(2)
    }
</script>
</html>